<!--
 * @Date: 2023-02-22 15:21:00
 * @LastEditors: nankai li
 * @LastEditTime: 2023-02-22 19:46:40
 * @FilePath: \李南开\choose-image-show.html
-->
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Image Upload Demo with Delete Functionality</title>
    <style>
        body {
            margin: 0;
            padding: 0;
        }
        #canvas {
            background-color: black;
            width: 100%;
            height: 100%;
        }
        .content {
            position: absolute;
            width: 80%;
            top: 20px;
            bottom: 20px;
            right: 0;
            left: 0;
            margin: auto;
            background-color: white;
        }
        .container {
            width: 90%;
            margin: 0 auto;
            margin-top: 20px;
            padding: 10px;
            border: 1px solid black;
            display: flex;
            flex-wrap: wrap;
        }
        .form {
            width: 90%;
            margin: 0 auto;
            margin-top: 50px;
            padding: 10px;
            border: 1px solid black;
        }

        .container .image-container {
            width: 200px;
            margin: 10px;
            border: 1px solid #ccc;
            position: relative;
        }

        .container .image-container img {
            width: 100%;
        }

        .delete-button {
            position: absolute;
            top: 5px;
            right: 5px;
            color: #ccc;
            cursor: pointer;
            transition: .5s;
        }
        .delete-button:hover {
            color: red;
        }
    </style>
</head>
<body>
    <canvas id="canvas"></canvas>
    <div class="content">
        <form class="form">
            <input type="file" id="file-input" multiple>
        </form>
        <div class="container"></div>
    </div>
    <script src="script.js"></script>
</body>
</html>